package cn.com.huzo.model.entities.purchase;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 物料采购合同明细-附加费实体类
 * <p>
 * @author 吴旭
 */
public class PoLinesSurchargesEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -6732264747955132544L;
    private String LinesId;
    private Long HeaderId;
    private String PoNo;             // 订单号
    private Float Surcharges;
    private String Description;      // 备注

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getPoNo() {
        return PoNo;
    }

    public void setPoNo(String PoNo) {
        this.PoNo = PoNo;
    }

    public Float getSurcharges() {
        return Surcharges;
    }

    public void setSurcharges(Float Surcharges) {
        this.Surcharges = Surcharges;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PoLinesSurchargesEntity)) {
            return false;
        }

        final PoLinesSurchargesEntity that = (PoLinesSurchargesEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
